<script setup>
import { onMounted, ref } from 'vue'

const tableData = ref([
  { name: 'Alice', age: 30, company: 'Tech Co', salary: '100k' },
  { name: 'Bob', age: 25, company: 'Biz Inc', salary: '80k' },
  { name: 'Charlie', age: 35, company: 'Dev LLC', salary: '120k' }
])

onMounted(() => {
  // You can perform additional setup here if needed
})

</script>

<template>
  <div>
    <h1>首页</h1>
    <el-table :data="tableData">
      <el-table-column prop="name" label="名称" />
      <el-table-column prop="age" label="年龄" />
      <el-table-column prop="company" label="公司" />
      <el-table-column prop="salary" label="年薪" />
    </el-table>
  </div>
</template>
<style scoped lang='scss'>
</style>